package edu.hebtu.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class PhoneCheck {

    public static Boolean check(String phone) {
        Pattern p = Pattern.compile("^((13[0-9])|(14[57])|(15[^4,\\D])|166|(17[3678])|(18[0-9]))\\d{8}$");
        Matcher m = p.matcher(phone);
        return m.matches();
    }

}
